#include "Interpolation.h"
#include <fstream>
using namespace std;
int main()
{

    Hermit D;
    vector<double> time{0.0,3.0,5.0,8.0,13.0};

    vector<double> dv1{0.0,75.0};
    vector<double> dv2{225,77};
    vector<double> dv3{383,80};
    vector<double> dv4{623,74};
    vector<double> dv5{993,72};

    vector<vector<double>> DV{dv1,dv2,dv3,dv4,dv5};
    
    pair<vector<double>*,vector<double>*> *p;

    p = D.interpolation(time,DV);
    string poly = generate_poly_rat(*(p->first),*( p->second));
    
    ofstream out;
    out.open("./date/D.polynomials", ios::out);

        out << poly << endl;
    
    out.close();
    return 0;
}
